package com.dower.clothing.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dower.clothing.mapper.ClProductMapper;
import com.dower.clothing.domain.ClProduct;
import com.dower.clothing.service.IClProductService;
import com.dower.common.core.text.Convert;

/**
 * 衣服定制订单Service业务层处理
 * 
 * @author dower
 * @date 2020-08-31
 */
@Service
public class ClProductServiceImpl implements IClProductService 
{
    @Autowired
    private ClProductMapper clProductMapper;

    /**
     * 查询衣服定制订单
     * 
     * @param numId 衣服定制订单ID
     * @return 衣服定制订单
     */
    @Override
    public ClProduct selectClProductById(Long numId)
    {
        return clProductMapper.selectClProductById(numId);
    }

    /**
     * 查询衣服定制订单列表
     * 
     * @param clProduct 衣服定制订单
     * @return 衣服定制订单
     */
    @Override
    public List<ClProduct> selectClProductList(ClProduct clProduct)
    {
        return clProductMapper.selectClProductList(clProduct);
    }

    /**
     * 新增衣服定制订单
     * 
     * @param clProduct 衣服定制订单
     * @return 结果
     */
    @Override
    public int insertClProduct(ClProduct clProduct)
    {
        return clProductMapper.insertClProduct(clProduct);
    }

    /**
     * 修改衣服定制订单
     * 
     * @param clProduct 衣服定制订单
     * @return 结果
     */
    @Override
    public int updateClProduct(ClProduct clProduct)
    {
        return clProductMapper.updateClProduct(clProduct);
    }

    /**
     * 删除衣服定制订单对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteClProductByIds(String ids)
    {
        return clProductMapper.deleteClProductByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除衣服定制订单信息
     * 
     * @param numId 衣服定制订单ID
     * @return 结果
     */
    @Override
    public int deleteClProductById(Long numId)
    {
        return clProductMapper.deleteClProductById(numId);
    }
}
